{include file="public/toper"/}
<style>
    .table_td {text-align: center;}
    .table_p {height: 20px;}
    .layui-table {width: 50%;margin: 0 auto;text-align: center;}
    .tis {margin-left: 21%;}
    .color{color: #FF0000}
</style>

<div class="x-body">
    <table class="layui-table">
        <p class="tis">基本信息</p>
        <tr>
            <td>用户：{$list['name']}</td>
            <td>状态：<span class="color">{if condition="$list['state'] eq 0"}申请中{elseif condition="$list['state'] eq 1"/}审核通过{elseif  condition="$list['state'] eq 2"/}审核失败{elseif  condition="$list['state'] eq 3"/}返现成功{elseif  condition="$list['state'] eq 4"/}返现失败{/if}</span></td>

        </tr>
        <tr>
            <td>返现金额：<span class="color">￥{$list['money']}</span></td>
            <td>返现说明：{$list['content']}</td>
        </tr>
        <tr>
            <td>申请人：{$list['aname']}</td>
            <td>申请时间：{$list['add_time']|date="Y-m-d H:i:s",###}</td>
        </tr>
    </table>

    {if condition="$list['admin_user_id'] neq ''"}
    <p class="table_p"></p>
    <table class="layui-table">
        <p class="tis">审核信息</p>
        <tr>
            <td>审核人：{$list['admin_user_id']}</td>
            <td>审核结果：{if condition="$list['state'] eq 0"}申请中{elseif condition="$list['state'] eq 1"/}审核通过{elseif  condition="$list['state'] eq 2"/}审核失败{elseif  condition="$list['state'] eq 3"/}返现成功{elseif  condition="$list['state'] eq 4"/}返现失败{/if}</td>
        </tr>
        <tr>
            <td>审核时间：{$list['audit_time']|date="Y-m-d H:i:s",###}</td>
            {if condition="$list['state'] eq 2"}
            <td>失败原因：{$list['remarks']}</td>
            {/if}
        </tr>
    </table>
    {/if}

    {if condition="$list['state'] eq 3"}
    <p class="table_p"></p>
    <table class="layui-table">
        <p class="tis">支付信息</p>
        <tr>
            <td>支付人：{$list['payer']}</td>
            <td>支付结果：{$list['pay_results']}</td>
        </tr>
        <tr>
            <td>支付渠道：{$list['pay_channel']}</td>
            <td>交易流水：{$list['pay_serial_number']}</td>
        </tr>
        <tr>
            <td>支付时间：{$list['pay_time']}</td>
        </tr>
    </table>
    {/if}

    {if condition="$list['state'] eq 0"}
    <p class="table_p"></p>
    <p class="tis">审核</p>
    <form action="" method="post" class="layui-form" id="forms">
        <input type="hidden" name="rebates_id" value="{$list['rebates_id']}" class="layui-input">
        <div class="layui-form-item" style="width: 50%;margin: 0 auto;">
            <input type="radio" name="state" value="1" title="审核通过" checked>
            <input type="radio" name="state" value="2" title="审核失败">
        </div>
        <div class="layui-form-item" style="width: 50%;margin: 0 auto;">
            <input type="text" value="" name="remarks" required="" lay-verify="required" autocomplete="off"  class="layui-input">
        </div>
        <div class="layui-form-item" style="width: 50%;margin: 0 auto;">
            <button  class="layui-btn" lay-filter="formSubmit" lay-submit="">提交</button>
        </div>
    </form>
    {/if}

</div>
{include file="public/footer"/}